profit = float(input('请输入利润：'))
#  扣税     5000
ratio = 0
if profit <= 10:
    ratio = 0.1
elif 10 < profit <= 20:
    ratio = 0.075
elif 20 < profit <= 40:
    ratio = 0.05
elif 40 < profit <= 60:
    ratio = 0.03
elif 60 < profit <= 100:
    ratio = 0.015

print(profit * ratio)
